package it.orma.iridehr.entities;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "SCHEDA_CANDIDATO")
public class SchedaCandidato extends EntitaBase implements Serializable {
	
	private static final long serialVersionUID = -4931384788331158879L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "ID_SCHEDA_CANDIDATO")
	private Long idSchedaCandidato;
	
	@Column(name = "ID_DOCUMENTO_CURRICULUM", length = 100, nullable = true)
	private String idDocumentoCurriculum;
	
	@Column(name = "ID_DOCUMENTO_FOTO", length = 100, nullable = true)
	private String idDocumentoFoto;
	
	@Column(name = "CONSENSO_TRATTAMENTO")
	private Integer consensoTrattamento;

	@Column(name = "ID_IRIDE")
	private String IdIride;
	
	public String getIdIride() {
		return IdIride;
	}

	public void setIdIride(String idIride) {
		IdIride = idIride;
	}

	public SchedaCandidato() {
		super();
	}

	public Long getIdSchedaCandidato() {
		return idSchedaCandidato;
	}

	public void setIdSchedaCandidato(Long idSchedaCandidato) {
		this.idSchedaCandidato = idSchedaCandidato;
	}

	public String getIdDocumentoCurriculum() {
		return idDocumentoCurriculum;
	}

	public void setIdDocumentoCurriculum(String idDocumentoCurriculum) {
		this.idDocumentoCurriculum = idDocumentoCurriculum;
	}

	public String getIdDocumentoFoto() {
		return idDocumentoFoto;
	}

	public void setIdDocumentoFoto(String idDocumentoFoto) {
		this.idDocumentoFoto = idDocumentoFoto;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime
				* result
				+ ((idSchedaCandidato == null) ? 0 : idSchedaCandidato
						.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		SchedaCandidato other = (SchedaCandidato) obj;
		if (idSchedaCandidato == null) {
			if (other.idSchedaCandidato != null)
				return false;
		} else if (!idSchedaCandidato.equals(other.idSchedaCandidato))
			return false;
		return true;
	}

	public Integer getConsensoTrattamento() {
		return consensoTrattamento;
	}

	public void setConsensoTrattamento(Integer consensoTrattamento) {
		this.consensoTrattamento = consensoTrattamento;
	}
	
}
